﻿namespace Sunny.Model.Vo
{
    public class RouteMetaVo
    {
        public RouteMetaVo(string title, string icon, bool noCache)
        {
            Title = title;
            Icon = icon;
            NoCache = noCache;
        }

        /// <summary>
        /// 设置该路由在侧边栏和面包屑中展示的名字
        /// </summary>
        public string Title { get; set; }


        /// <summary>
        /// 设置该路由的图标，对应路径src/assets/icons/svg
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 设置为true，则不会被 <keep-alive>缓存
        /// </summary>
        public bool NoCache { get; set; }
    }
}